package com.ruoyi.community.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 提醒实体类
 */
public class MessageRemind {
    private static final long serialVersionUID = 1L;

    /** 提醒编号 */
    private Long id;

    /** 社区编号 */
    private Integer communityId;

    /** 操作者编号 */
    private Long senderId;

    /** 操作者姓名 */
    private String senderName;

    /** 操作者动作，点赞，评论等 */
    private String senderAction;

    /** 目标对象id */
    private Long objectId;

    /** 目标对象内容或简介 */
    private String object;

    /** 被操作对象类型 */
    private String objectType;

    /** 跳转链接 */
    private String objectUrl;

    /** 消息接受者id */
    private Long recipientId;

    /** 是否阅读 未读0/已读1 */
    private Integer status;

    /** 阅读时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date readTime;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public Integer getCommunityId() {
        return communityId;
    }

    public void setCommunityId(Integer communityId) {
        this.communityId = communityId;
    }

    public void setSenderId(Long senderId)
    {
        this.senderId = senderId;
    }

    public Long getSenderId() 
    {
        return senderId;
    }
    public void setSenderName(String senderName) 
    {
        this.senderName = senderName;
    }

    public String getSenderName() 
    {
        return senderName;
    }
    public void setSenderAction(String senderAction) 
    {
        this.senderAction = senderAction;
    }

    public String getSenderAction() 
    {
        return senderAction;
    }
    public void setObjectId(Long objectId) 
    {
        this.objectId = objectId;
    }

    public Long getObjectId() 
    {
        return objectId;
    }
    public void setObject(String object) 
    {
        this.object = object;
    }

    public String getObject() 
    {
        return object;
    }
    public void setObjectType(String objectType) 
    {
        this.objectType = objectType;
    }

    public String getObjectType() 
    {
        return objectType;
    }
    public void setObjectUrl(String objectUrl) 
    {
        this.objectUrl = objectUrl;
    }

    public String getObjectUrl() 
    {
        return objectUrl;
    }
    public void setRecipientId(Long recipientId) 
    {
        this.recipientId = recipientId;
    }

    public Long getRecipientId() 
    {
        return recipientId;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public void setReadTime(Date readTime)
    {
        this.readTime = readTime;
    }

    public Date getReadTime() 
    {
        return readTime;
    }

    public Date getCreateTime()
    {
        return createTime;
    }

    public void setCreateTime(Date createTime)
    {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("communityId", getCommunityId())
            .append("senderId", getSenderId())
            .append("senderName", getSenderName())
            .append("senderAction", getSenderAction())
            .append("objectId", getObjectId())
            .append("object", getObject())
            .append("objectType", getObjectType())
            .append("objectUrl", getObjectUrl())
            .append("recipientId", getRecipientId())
            .append("status", getStatus())
            .append("readTime", getReadTime())
            .append("createTime", getCreateTime())
            .toString();
    }
}
